﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;


namespace appServer
{
    class Program
    {
        static void Main(string[] args)
        {
            /*Database db = Database.getInstance();
            Example ex = new Example();
            */
            ServiceHost hostBank = new ServiceHost(typeof(appServices.Bank));
            ServiceHost hostClient = new ServiceHost(typeof(appServices.Client));
            ServiceHost hostSupplier = new ServiceHost(typeof(appServices.Supplier));
            hostBank.Open();
            Console.WriteLine("Bank HostServer Launched \n");
            hostClient.Open();
            Console.WriteLine("Client HostServer Launched \n");
            hostSupplier.Open();
            Console.WriteLine("Supplier HostServer Launched \n"); 
            Console.Read();
            hostBank.Close();
            hostClient.Close();
        }
    }
}
